package com.xhtranslate.common.config;

/**
 * @author liuxuhuang
 * @version 1.0
 * @package com.xhtranslate.common.config
 * @date 2022/11/2 15:08:09
 * @description 翻译配置类
 */
public class TranslateConfig {
    /**
     * 特殊字符
     */
    public final static String SpecialString = "[`~!@#$%^&*=|{}':;',\\\\[\\\\].<>/?~！@#￥%……&*（）——+|{}【】‘；：”“’。，、？]";

    /**
     * 百度密钥
     */
    public final static String BaiduOcrAppId = "";
    public final static String BaiduOcrApiId = "";
    public final static String BaiduOcrSecreKey = "";

    public final static String BaiduAppId = "";
    public final static String BaiduSecreKey = "";
    public final static String BaiduRequestUrl = "http://api.fanyi.baidu.com/api/trans/vip/translate";

    /**
     * 有道云密钥
     */
    public final static String YoudaoAppId = "";
    public final static String YoudaoSecreKey = "";
    public final static String YoudaoTextRequestUrl = "https://openapi.youdao.com/api";
    public final static String YoudaoOcrRequestUrl = "https://openapi.youdao.com/ocrapi";

    /**
     * 阿里云密钥
     */
    public final static String AliAccessKeyId = "";
    public final static String AliAaccessKeySecret = "";

    /**
     * 百度限额
     */
    public final static String BaiduOcrRedisName = "baiduOcrCreditLimit";
    public final static int BaiduOcrRedisCreditLimit = 1000;
    public final static String BaiduTextTranslateRedisName = "baiduTextCreditLimit";
    public final static int BaiduTextTranslateRedisCreditLimit = 1000000;

    /**
     * 阿里限额
     */
    public final static String AliOcrRedisName = "aliOcrCreditLimit";
    public final static int AliOcrRedisCreditLimit = 200;
    public final static String AliTextTranslateRedisName = "aliTextCreditLimit";
    public final static int AliTextTranslateRedisCreditLimit = 1000000;

    /**
     * 有道限额
     */
    public final static String YoudaoOcrRedisName = "youdaoOcrCreditLimit";
    public final static int YoudaoOcrRedisCreditLimit = 5;
    public final static String YoudaoTextTranslateRedisName = "youdaoTextCreditLimit";
    public final static int YoudaoTextTranslateRedisCreditLimit = 30;
}
